package edu.bu.cs673b1s1p3.nextbus.map;

import org.jdesktop.swingx.mapviewer.GeoPosition;

/**
 * @author Jimson
 */

public class MapView {
	MapModel mapModel;
	
	/**
	 * Constructor
	 * 
	 * @param model
	 */
	public MapView(MapModel model) {
		mapModel = model;
	}
	
	/**
	 * Creates a default map view, center point was set to Boston, MA.
	 */
	public void createMapView() {
		mapModel.getMapViewer().setDefaultProvider(mapModel.getMapProvider());
		mapModel.getMapViewer().setCenterPosition(new GeoPosition(42.347380, -71.065407));
		mapModel.getMapViewer().setZoom(4);
		
	}
}
